import 'dart:convert';
import 'package:enterprise_v6_app/generated/json/accident_info_entity.g.dart';
import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
export 'package:enterprise_v6_app/generated/json/accident_info_entity.g.dart';

/// 事故事件实体
@JsonSerializable()
class AccidentInfoEntity {

	AccidentInfoEntity();

	factory AccidentInfoEntity.fromJson(Map<String, dynamic> json) => $AccidentInfoEntityFromJson(json);
	late String accidentCode = '';
	late String accidentLevel = '';
	late String accidentLevelName = '';
	late String accidentName = '';
	late String accidentOverview = '';
	late String accidentSource = '';
	late String accidentSourceName = '';
	late String accidentType = '';
	late String accidentTypeName = '';
	late String companyCode = '';
	late String createBy = '';
	late String createById = '';
	late String createDate = '';
	late int deathNum = 0;
	late String deleted = '';
	late String disposalStatus = '';
	late String disposalStatusName = '';
	late String id = '';
	late String latitude = '';
	late String longitude = '';
	late int minorInjuryNum = 0;
	late String reportingStatus = '';
	late String reportingStatusName = '';
	late int seriousInjuryNum = 0;
	late String updateBy = '';
	late String updateById = '';
	late String updateDate = '';

	Map<String, dynamic> toJson() => $AccidentInfoEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}
